package cn.ecnu.note.service;

import cn.ecnu.note.vo.AdminCommentVo;
import cn.ecnu.note.vo.CommentFrontVo;
import cn.ecnu.note.vo.CommentVo;
import cn.ecnu.note.vo.ViewCommentVo;

import java.util.List;

public interface CommentService {
    CommentVo addComment(CommentFrontVo vo);

    ViewCommentVo getCommentByNoteId(Integer noteId, Integer pageNum);

    ViewCommentVo getCommentByUserId(Integer userId, Integer pageNum);

    int deleteById(Integer commentId, Integer userId, Integer permission);

    List<AdminCommentVo> getAllComment(Integer uid, Integer nid, Integer pid);
}
